$(function() {
	$.ajax({
		url:ApiUrl+"/index.php?act=goods_class",
		type:'get',
		jsonp:'callback',
		dataType:'jsonp',
		success:function(result){
			var data = result.datas;
			data.WapSiteUrl = WapSiteUrl;
			var html = template.render('category-one', data);
			$("#categroy-cnt").html(html);
		}
	});
	$('#search-submit').click(function(){
		var keyword = $('#keyword').val();
		if(keyword=='weixin'){
			window.location.href=WapSiteUrl+'/weixin.php'
		}
		location.href = WapSiteUrl+'/tmpl/product_list.html?keyword='+encodeURIComponent(keyword);
	});
});